//
//  XMWantController.m
//  Second
//
//  Created by Alex on 16/7/15.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import "XMWantController.h"

@interface XMWantController ()//<UITableViewDataSource,UITableViewDelegate>
//@property (nonatomic,strong)UITableView *tableView;

@end

@implementation XMWantController

- (void)viewDidLoad {
    [super viewDidLoad];
//    self.automaticallyAdjustsScrollViewInsets = NO;
//    [self.view addSubview:self.tableView];
//    [self.tableView registerNib:[UINib nibWithNibName:@"XMWantTableViewCell" bundle:nil] forCellReuseIdentifier:@"want_cell"];
// //   self.view.backgroundColor = [UIColor colorWithRed:100/255.0 green:100/255.0 blue:100/255.0 alpha:1];
//    
//    self.model.price = self.place;
//    self.model.head_image = self.headerImage;
    
    if (self.himage != nil) {
        
        [self.headerImage sd_setImageWithURL:[NSURL URLWithString:self.himage]];
        self.context.text = self.place;
   
    } else {
        
        [self.headerImage sd_setImageWithURL:[NSURL URLWithString:self.heimage]];
        self.context.text = [NSString stringWithFormat:@"¥%@",self.price];
    }
    
    
    
    
}

- (IBAction)pay:(UIButton *)sender {
    
    
}


//- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
//    
//    return 1;
//}
//
//- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
//    
//    return 1;
//}
//
//- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
//    
//    XMWantTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"want_cell" forIndexPath:indexPath];
//    
//    cell.selectionStyle = UITableViewCellSelectionStyleNone;
//    [cell setCellWithModel:self.model];
//    
//    return cell;
//}
//
//- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
//    
//    return 60.f;
//}


//
//- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
//    
//    [self.navigationController popViewControllerAnimated:YES];
//
//}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
    
    
}



@end
